-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baylike Walls and Windows #5547
Baylike Walls and Windows #5547
Conversation
finally, i can quit |
|
…l-Station-13-RP into great_perspective
…o great_perspective
love how map changes turn my diffs into +10,000 line monstrosities. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good from what I can see, ping me on discord if you do any other changes or when you feel like the PR is good to merge
@@ -0,0 +1,3 @@ | |||
#define BITSHIFT_LEFT(X, N) (X << (N)) | |||
#define BITSHIFT_RIGHT(X, N) (X >> (N)) | |||
#define BITFLAG(X) BITSHIFT_LEFT(1, X) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need these defines?
bitshifts are a pretty fundamental thing
i don't think it should be behind a #define, especially when it's longer to type the define out in most cases.
//color = "" | ||
|
||
/obj/machinery/door/airlock/security/armory/allowed(mob/user) | ||
if(get_security_level() in list("green","blue")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
y' sure about this? shouldn't hos/whoever be able to get in? or is this the "public" door?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this code already exists. it just shows up as something new because i moved all the subtypes and their shit to a new file.
dc01891
to
ce4a4f1
Compare
switch(D) | ||
if(NORTH) | ||
dir = WEST | ||
break | ||
if(EAST) | ||
dir = SOUTH | ||
break | ||
if(SOUTH) | ||
dir = WEST | ||
break | ||
if(WEST) | ||
dir = SOUTH | ||
break | ||
if(T.density) | ||
switch(D) | ||
if(NORTH) | ||
dir = WEST | ||
break | ||
if(EAST) | ||
dir = SOUTH | ||
break | ||
if(SOUTH) | ||
dir = WEST | ||
break | ||
if(WEST) | ||
dir = SOUTH | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dir setting code should be before the . =..() and instead set ndir, so the proc itself sets it
setting ndir will make this happen because args are just passed down the ..() instead of copied so by re-setting an arg, it's propagating down.
directly dir setting after ..() will break things that rely on this behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last nitpicks
/obj/structure/wall_frame/CanPass(atom/movable/mover, turf/target, height=0, air_group=0) | ||
if(air_group || (height==0)) return 1 | ||
if(istype(mover,/obj/projectile)) | ||
return 1 | ||
if(istype(mover) && mover.check_pass_flags(ATOM_PASS_TABLE)) | ||
return 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
our canPass doesn't touch ZAS, check the root definition of CanPass and use that; don't worry about atmos pass, that's already handled by /obj/structure's defaults.
…el-Station-13-RP into great_perspective
About The Pull Request
Largely a port of code from Daedalus Dock and icons from Bay/Nebula. Lots of things need to be touched with this.
Why It's Good For The Game
It just looks better, imho.
Changelog
🆑
/:cl: